package com.uzhie.web.service;

import com.uzhie.exception.UserException;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Service;

/**
 * Created by TangFei on 2018/7/21.
 */
@Service
public class DemoService {

    public String demo(@NotEmpty(message = "用户名不可为空") String username) throws UserException {
//        throw new UserException(UserException.Status.INSERT_ERROR);
        return "哈哈哈";
    }

}
